package com.hualan.sfzyproject.mapper;

import com.hualan.sfzyproject.domain.ConsultationAppointment;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
@Mapper
/**
* @author LUCK
* @description 针对表【consultation_appointment】的数据库操作Mapper
* @createDate 2025-01-02 16:01:40
* @Entity com.hualan.sfzyproject.domain.ConsultationAppointment
*/
public interface ConsultationAppointmentMapper {

    int deleteByPrimaryKey(Long id);

    int insert(ConsultationAppointment record);

    int insertSelective(ConsultationAppointment record);

    ConsultationAppointment selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ConsultationAppointment record);

    int updateByPrimaryKey(ConsultationAppointment record);

    List<ConsultationAppointment> selectByUserId(int userId);

    int updateStatusByAppointmentId(@RequestParam("appointmentId") int appointmentId, @RequestParam("status") int status);

    List<ConsultationAppointment> selectByConsultantId(int consultantId);

}
